package fr.afcepf.atod18.restaurants.entity;

import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

//Annotations
@Entity
public class Plat extends Produit {
	
private boolean specialiteDuChef;
@ManyToOne
private TypePlat typePlat;

public Plat() {
	super();
}
public Plat(String nom, String description, double prix, boolean isDisponible,
		Calendar dateFinValidite, boolean specialiteDuChef, TypePlat typePlat) {
	super(nom, description, prix, isDisponible, dateFinValidite);
	this.specialiteDuChef = specialiteDuChef;
	this.typePlat = typePlat;
}

public TypePlat getTypePlat() {
	return typePlat;
}

public void setTypePlat(TypePlat typePlat) {
	this.typePlat = typePlat;
}

public boolean isSpecialiteDuChef() {
	return specialiteDuChef;
}

public void setSpecialiteDuChef(boolean specialiteDuChef) {
	this.specialiteDuChef = specialiteDuChef;
}

}
